<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>13-变量的预解析</title>
	</head>
	<body>
		<script type="text/javascript">
			//num is not defined
			//console.log(num);//undefined
			//var num = 10;
			
			//1.变量预解析
			var num;
			console.log(num);//undefined
			num = 10;
			//2.函数预解析
			function p(){
				console.log('abc');
			}
			//p();
			
			
/* 			x();
			var x = function(){
				console.log('匿名函数...');
			} */
			
			var x;
			x();
			function(){
				
			}
			
			
			
		</script>
	</body>
</html>
